package com.ben.tcptester.exception;

/**
 * Created by Peter on 2017/7/17.
 */
public class ClientException extends Throwable{
    private int code;
    private String message;

    public ClientException(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getCode() {

        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
